package com.crl.manager.scene
{
	import com.crl.manager.state.StateMachine;
	
	import flash.display.Sprite;
	
	public class AbstractScene extends Sprite implements IScene
	{
		
		private var _type:String;
		private var _initialized:Boolean=false;
		protected var stateMachine:StateMachine;
		
		public function AbstractScene(type:String)
		{
			this._type=type;
		}
		
		public function get type():String
		{
			return _type;
		}
		
		public function get initialized():Boolean
		{
			return _initialized;
		}
		
		public function initialize():void
		{
			_initialized=true;
		}
		
		public function setStateMachine(value:StateMachine):void
		{
			stateMachine=value;
		}
		
		public function exit():void
		{
		}
		
		public function enter():void
		{
		}
	}
}